/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assignemnt1;

/**
 *
 * @author Hansel-G
 */
public class GridView {
    final int space = 10;


    public char[][] gridViewSetup (int horLanes, int verLanes) {
        final int HGrid = 25;
        final int VGrid = 26;
        char[][] cell = new char [HGrid][VGrid];
        for (int i = 0; i < HGrid ; i++){
            for (int j = 0; j<VGrid; j++)
            cell[i][j] = ' ';

        }
        for (int i = 0; i < space; i++){
            cell[i][space] = '|';
            cell[space][i] = '-';
            cell[space + horLanes+1][i] = '-';
            cell[space + horLanes+1+i+1][space] = '|';
            cell[i][space + verLanes+1] = '|';
            cell[space][space + verLanes+1+i+1] = '-';
            cell[space + horLanes+1][space+verLanes+1+i+1] = '-';
            cell[space + horLanes+1+i+1][space+verLanes+1] = '|';

        }
         for (int i = 0; i < HGrid ; i++){
            for (int j = 0; j<VGrid; j++)
            System.out.print(cell[i][j]);
                            System.out.println();
        }
            return cell;
}

    public void gridPrint (char[][] cell){
        final int HGrid = 25;
        final int VGrid = 26;
        for (int i = 0; i < HGrid ; i++){
            for (int j = 0; j < VGrid; j++){
                System.out.print(cell[i][j]);}

            }
            System.out.println();
            }
        }
    

